function checkPermission() {	 
	var pers = [];
	$.ajax({
		type : 'get',
		url :  '/sysusers/owns',
		contentType : "application/json; charset=utf-8",
		async : false,
		success : function(data) {
			data=data.data;
			 
			//console.log(data);
			pers = data;
			
			$("[permission]").each(function() {
				var per = $(this).attr("permission");
				if ($.inArray(per, pers) < 0) {
					$(this).hide();
				}
			});
		}
	});
	return pers;
}
function fromatDate(jdrq){
	   var dateee = new Date(jdrq).toJSON();
	    
	   var date = new Date(+new Date(dateee)+8*3600*1000).toISOString().replace(/T/g,' ').replace(/\.[\d]{3}Z/,'');
	  // var date1=date.Format("yyyy-MM-dd");
	   return date;
}